import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import config from '@/config'
import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'
import iViewThemes from 'iview-layout-themes'
import 'iview-layout-themes/lib/iview-layout-themes.css'
import '@/assets/css/common.css'
import dataV from '@jiaminghi/data-view'
import hdPluginGather from 'hd-plugin-gather'
import 'hd-plugin-gather/lib/hd-plugin-gather.css'

import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'

if (process.env.NODE_ENV !== 'production') require('@/mock')
Vue.use(ViewUI)
Vue.use(Viewer)
Vue.use(dataV)
Vue.use(iViewThemes)
Vue.use(hdPluginGather)

Vue.config.productionTip = false
Vue.config.performance = true
Vue.prototype.$config = config

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
